home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD006b.dsk
/
INSPECT FILES.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
2KB
|
51 lines
1 HOME
2 VTAB 5
10 D$ = "<CTRL-D>"
15 DIM WD(8)
16 PRINT "THE WORD FILES ARE LT5, LT6, LT7, & LT8"
20 INPUT "WHICH FILE ";F$
30 IF F$ = "LT5" THEN BY = 15:LT = 4: GOTO 70
40 IF F$ = "LT6" THEN BY = 18:LT = 5: GOTO 70
50 IF F$ = "LT7" THEN BY = 21:LT = 6: GOTO 70
60 IF F$ = "LT8" THEN BY = 24:LT = 7
70 PRINT D$;"OPEN ";F$;",L";BY
80 PRINT D$;"READ ";F$;",R0"
85 INPUT RE
90 FOR I = 1 TO RE
100 PRINT D$;"READ ";F$;",R";I
110 FOR J = 0 TO LT: INPUT WD(J): NEXT J
115 PRINT "RECORD # ";I;" WORD: ";
120 FOR J = 0 TO LT
130 IF WD(J) = 11 THEN PRINT "A";
140 IF WD(J) = 12 THEN PRINT "B";
150 IF WD(J) = 13 THEN PRINT "C";
160 IF WD(J) = 14 THEN PRINT "D";
170 IF WD(J) = 15 THEN PRINT "E";
180 IF WD(J) = 16 THEN PRINT "F";
190 IF WD(J) = 17 THEN PRINT "G";
200 IF WD(J) = 18 THEN PRINT "H";
210 IF WD(J) = 19 THEN PRINT "I";
220 IF WD(J) = 20 THEN PRINT "J";
230 IF WD(J) = 21 THEN PRINT "K";
240 IF WD(J) = 22 THEN PRINT "L";
250 IF WD(J) = 23 THEN PRINT "M";
260 IF WD(J) = 24 THEN PRINT "N";
270 IF WD(J) = 25 THEN PRINT "O";
280 IF WD(J) = 26 THEN PRINT "P";
290 IF WD(J) = 27 THEN PRINT "Q";
300 IF WD(J) = 28 THEN PRINT "R";
310 IF WD(J) = 29 THEN PRINT "S";
320 IF WD(J) = 30 THEN PRINT "T";
330 IF WD(J) = 31 THEN PRINT "U";
340 IF WD(J) = 32 THEN PRINT "V";
350 IF WD(J) = 33 THEN PRINT "W";
360 IF WD(J) = 34 THEN PRINT "X";
370 IF WD(J) = 35 THEN PRINT "Y";
380 IF WD(J) = 36 THEN PRINT "Z";
500 NEXT J
510 PRINT " "
520 NEXT I
530 PRINT D$;"CLOSE"
540 INPUT "DO YOU WISH TO CONTINUE ";F$
550 IF F$ = "Y" THEN GOTO 20
560 END